FROM 192.168.16.148:10004/jdk/java:8
VOLUME /tmp
MAINTAINER shenxingping
EXPOSE 8080
ENV LANG C.UTF-8
ENV PARAMS=""
ENV JAVA_OPTS=""
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

ADD target/sentinel-dashboard-nacos-1.8.2.jar /sentinel-dashboard-nacos-1.8.2.jar

ENTRYPOINT ["sh","-c","java $JAVA_OPTS -Duser.timezone=GMT+08 -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8 -jar /sentinel-dashboard-nacos-1.8.2.jar $PARAMS"]